﻿using Wicresoft.SMS.Common;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;

namespace SMS.Gateway.Host.Test
{
    
    
    /// <summary>
    ///This is a test class for LogTest and is intended
    ///to contain all LogTest Unit Tests
    ///</summary>
    [TestClass()]
    public class LogTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for Log Constructor
        ///</summary>
        [TestMethod()]
        public void LogConstructorTest()
        {
            Log target = new Log();
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for Assert
        ///</summary>
        [TestMethod()]
        public void AssertTest()
        {
            bool condition = false; // TODO: Initialize to an appropriate value
            Log.Assert(condition);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for Assert
        ///</summary>
        [TestMethod()]
        public void AssertTest1()
        {
            bool condition = false; // TODO: Initialize to an appropriate value
            string format = string.Empty; // TODO: Initialize to an appropriate value
            object[] objs = null; // TODO: Initialize to an appropriate value
            Log.Assert(condition, format, objs);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for WriteDebug
        ///</summary>
        [TestMethod()]
        public void WriteDebugTest()
        {
            string format = string.Empty; // TODO: Initialize to an appropriate value
            object[] objs = null; // TODO: Initialize to an appropriate value
            Log.WriteDebug(format, objs);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for WriteError
        ///</summary>
        [TestMethod()]
        public void WriteErrorTest()
        {
            string format = string.Empty; // TODO: Initialize to an appropriate value
            object[] objs = null; // TODO: Initialize to an appropriate value
            Log.WriteError(format, objs);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for WriteErrorIf
        ///</summary>
        [TestMethod()]
        public void WriteErrorIfTest()
        {
            bool condition = false; // TODO: Initialize to an appropriate value
            string format = string.Empty; // TODO: Initialize to an appropriate value
            object[] objs = null; // TODO: Initialize to an appropriate value
            Log.WriteErrorIf(condition, format, objs);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for WriteException
        ///</summary>
        [TestMethod()]
        public void WriteExceptionTest()
        {
            Exception e = null; // TODO: Initialize to an appropriate value
            string format = string.Empty; // TODO: Initialize to an appropriate value
            object[] objs = null; // TODO: Initialize to an appropriate value
            Log.WriteException(e, format, objs);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for WriteInfo
        ///</summary>
        [TestMethod()]
        public void WriteInfoTest()
        {
            Log.WriteInfo();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for WriteInfo
        ///</summary>
        [TestMethod()]
        public void WriteInfoTest1()
        {
            string format = string.Empty; // TODO: Initialize to an appropriate value
            object[] objs = null; // TODO: Initialize to an appropriate value
            Log.WriteInfo(format, objs);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for WriteInfoIf
        ///</summary>
        [TestMethod()]
        public void WriteInfoIfTest()
        {
            bool condition = false; // TODO: Initialize to an appropriate value
            string format = string.Empty; // TODO: Initialize to an appropriate value
            object[] objs = null; // TODO: Initialize to an appropriate value
            Log.WriteInfoIf(condition, format, objs);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for Listeners
        ///</summary>
        [TestMethod()]
        public void ListenersTest()
        {
            IList<LogListener> actual;
            actual = Log.Listeners;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
